<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>API: stylesheet   (YUI Library)</title>
	
	<link rel="shortcut icon" href="assets/yui_icon.ico" type="image/x-icon" />
	<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" />
	<link rel="stylesheet" type="text/css" href="assets/api.css" />

    <script type="text/javascript" src="assets/api-js"></script>
    <script type="text/javascript" src="assets/ac-js"></script>
</head>

<body id="yahoo-com">

<div id="doc3" class="yui-t2">
	<div id="hd">
        <h1>
        	<a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a>
        	<img src="assets/yui_icon.png" alt="YUI文档中文化" />
        </h1>
        <h3>stylesheet&nbsp; <span class="subtitle">2.7.0b</span></h3>
        <a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> 
            &gt; <a href="./module_stylesheet.html" title="stylesheet">stylesheet</a>
                
                
        <form onsubmit="return false">
            <div id="propertysearch">
                搜索: <input autocomplete="off" id="searchinput" />
                <div id="searchresults">
                    &nbsp;
                </div>
            </div>
        </form>
	</div>

	<div id="bd">
		<div id="yui-main">
			<div class="yui-b">
            <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form">
                <fieldset>
                    <legend>Filters</legend>
                <span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span>
                <span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span>
                <span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span>
                </fieldset>
            </form>

                   
                    <h3>模块：stylesheet
                    
                    <span class="description"><em>Beta</em></span>


                    </h3>
                    <div class="description summary">
                        StyleSheet 组件是一个直接管理样式表内的 CSS 规则的工具。
                    </div>



                <div class="yui-gc">
                    <div class="yui-u first">

                            <p>本模块包含以下类：</p>
                            <script>
                            //var YUI_CLASS_LIST = [{"extends": {"superclass": {}, "events": {}, "configs": {}, "properties": {}, "methods": {}}, "description": "\u521b\u5efa\u4e00\u4e2a YAHOO.util.StyleSheet \u5b9e\u4f8b\uff0c\u5b83\u5c01\u88c5\u4e86\u4e00\u4e2a CSS \u6837\u5f0f\u8868\u3002\n\u8fd9\u4e2a\u6784\u9020\u5668\u51fd\u6570\u53ef\u4ee5\u7528\u51fd\u6570\u5f62\u5f0f\u8c03\u7528\uff0c\u4e5f\u53ef\u4ee5\u7528\u6784\u9020\u5668\u7684\u8bed\u6cd5\u8c03\u7528\u3002\n<pre><code>var sheet = YAHOO.util.StyleSheet(..);</pre></code>\n\u6216\n<pre><code>var sheet = new YAHOO.util.StyleSheet(..);</pre></code>\n\u4f20\u9012\u7ed9\u51fd\u6570\u7684\u7b2c\u4e00\u4e2a\u53c2\u6570\u53ef\u4ee5\u662f\u4ee5\u4e0b\u4efb\u610f\u4e00\u79cd\uff1a\n<ul>\n<li>\u671f\u671b\u7ed9\u65b0\u6ce8\u518c\u7684\u7a7a\u6837\u5f0f\u8868\u547d\u540d\u7684\u5b57\u7b26\u4e32</li>\n<li>\u5df2\u5b58\u5728\u7684 YAHOO.util.StyleSheet \u5b9e\u4f8b\u7684\u540d\u79f0\u5b57\u7b26\u4e32</li>\n<li>\u5df2\u5b58\u5728\u7684 YAHOO.util.StyleSheet \u5b9e\u4f8b\u751f\u6210\u7684\u552f\u4e00 yuiSSID</li>\n<li>\u5df2\u5b58\u5728\u7684 <code>&lt;link&gt;</code> \u6216 <code>&lt;style&gt;</code> \u8282\u70b9\u7684 id </li>\n<li>\u6307\u5411\u4e00\u4e2a\u5df2\u5b58\u5728\u7684 <code>&lt;link&gt;</code> \u6216 <code>&lt;style&gt;</code> \u8282\u70b9\u5bf9\u8c61</li>\n<li>\u7528\u6765\u521b\u5efa\u65b0\u6837\u5f0f\u8868\u7684\u4e00\u6bb5 css \u6587\u672c</li>\n</ul>\n<p>\u5982\u679c\u4f20\u9012\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0cStyleSheet \u4f1a\u9996\u5148\u5c1d\u8bd5\u4eceDOM\u4e2d\u627e\u5230\u4ee5\u6b64\u5b57\u7b26\u4e32\u4e3a\u540d\u79f0\u7684 DOM \u5143\u7d20\u3002\n\u63a5\u7740\u68c0\u67e5\u540c\u540d\u7684\u5b9e\u4f8b\u662f\u5426\u5df2\u5b58\u5728\u4e8e\u5185\u90e8\u7684\u9759\u6001\u6ce8\u518c\u8868\u4e2d\u3002\n\u5982\u679c\u90fd\u6ca1\u6709\u627e\u5230\uff0c\u800c\u5b57\u7b26\u4e32\u91cc\u53c8\u5305\u542b { \u5b57\u7b26\uff0c\u90a3\u4e48\u6b64\u5b57\u7b26\u4e32\u5c31\u4f1a\u6210\u4e3a\u65b0\u521b\u5efa\u7684 StyleSheet \u7684\u521d\u59cb\u5316\u7684 cssText\u3002\n\u5426\u5219\uff0c\u5c31\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u7a7a StyleSheet\uff0c\u4ee5\u6b64\u5b57\u7b26\u4e32\u4f5c\u4e3a\u540d\u79f0\uff0c\u5e76\u4ee5\u8fd9\u4e2a\u540d\u79f0\u6765\u6ce8\u518c\u3002</p>\n<p>\u53ef\u9009\u7684\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u7528\u6765\u7ed9\u6837\u5f0f\u8868\u6ce8\u518c\u7684\u540d\u79f0\u5b57\u7b26\u4e32\uff0c\n\u8fd9\u4e2a\u53c2\u6570\u4e3b\u8981\u7528\u5728\u7b2c\u4e00\u4e2a\u53c2\u6570\u63d0\u4f9b\u4e00\u4e2a\u8282\u70b9 id/\u5f15\u7528\uff0c\u6216\u8005\u4e00\u6bb5 css \u6587\u672c\u65f6\uff0c\u7ed9\u521b\u5efa\u7684\u65b0\u5b9e\u4f8b\u547d\u540d\u3002</p>", "guessedname": "StyleSheet", "name": "YAHOO.util.StyleSheet"}];
                            </script>
                            <div id="splash_classList">
                                <ul>
                                    <li><a href="YAHOO.util.StyleSheet.html" title="YAHOO.util.StyleSheet" id="class_0">StyleSheet</a></li>
                                </ul>
                            </div>
                    </div>
                    <div class="yui-u">

                        </div>
                </div>

			</div>
		</div>
		<div class="yui-b">
            <div class="nav">

                    <div id="moduleList" class="module">
                        <h4>模块</h4>
                        <ul class="content">
                                <li class=""><a href="module_animation.html" title="animation">animation</a></li>
                                <li class=""><a href="module_autocomplete.html" title="autocomplete">autocomplete</a></li>
                                <li class=""><a href="module_button.html" title="button">button</a></li>
                                <li class=""><a href="module_calendar.html" title="calendar">calendar</a></li>
                                <li class=""><a href="module_carousel.html" title="carousel">carousel</a></li>
                                <li class=""><a href="module_charts.html" title="charts">charts</a></li>
                                <li class=""><a href="module_colorpicker.html" title="colorpicker">colorpicker</a></li>
                                <li class=""><a href="module_connection.html" title="connection">connection</a></li>
                                <li class=""><a href="module_container.html" title="container">container</a></li>
                                <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li>
                                <li class=""><a href="module_datasource.html" title="datasource">datasource</a></li>
                                <li class=""><a href="module_datatable.html" title="datatable">datatable</a></li>
                                <li class=""><a href="module_datemath.html" title="datemath">datemath</a></li>
                                <li class=""><a href="module_dom.html" title="dom">dom</a></li>
                                <li class=""><a href="module_dragdrop.html" title="dragdrop">dragdrop</a></li>
                                <li class=""><a href="module_editor.html" title="editor">editor</a></li>
                                <li class=""><a href="module_element.html" title="element">element</a></li>
                                <li class=""><a href="module_event.html" title="event">event</a></li>
                                <li class=""><a href="module_get.html" title="get">get</a></li>
                                <li class=""><a href="module_history.html" title="history">history</a></li>
                                <li class=""><a href="module_imagecropper.html" title="imagecropper">imagecropper</a></li>
                                <li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li>
                                <li class=""><a href="module_json.html" title="json">json</a></li>
                                <li class=""><a href="module_layout.html" title="layout">layout</a></li>
                                <li class=""><a href="module_logger.html" title="logger">logger</a></li>
                                <li class=""><a href="module_menu.html" title="menu">menu</a></li>
                                <li class=""><a href="module_paginator.html" title="paginator">paginator</a></li>
                                <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li>
                                <li class=""><a href="module_profilerviewer.html" title="profilerviewer">profilerviewer</a></li>
                                <li class=""><a href="module_resize.html" title="resize">resize</a></li>
                                <li class=""><a href="module_selector.html" title="selector">selector</a></li>
                                <li class=""><a href="module_slider.html" title="slider">slider</a></li>
                                <li class="selected"><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li>
                                <li class=""><a href="module_tabview.html" title="tabview">tabview</a></li>
                                <li class=""><a href="module_treeview.html" title="treeview">treeview</a></li>
                                <li class=""><a href="module_uploader.html" title="uploader">uploader</a></li>
                                <li class=""><a href="module_yahoo.html" title="yahoo">yahoo</a></li>
                                <li class=""><a href="module_yuiloader.html" title="yuiloader">yuiloader</a></li>
                                <li class=""><a href="module_yuitest.html" title="yuitest">yuitest</a></li>
                        </ul>
                    </div>

                    <div id="classList" class="module">
                        <h4>类</h4>
                        <ul class="content">
                                <li class=""><a href="YAHOO.util.StyleSheet.html" title="YAHOO.util.StyleSheet">YAHOO.util.StyleSheet</a></li>
                        </ul>
                    </div>

                    <div id="fileList" class="module">
                        <h4>文件</h4>
                        <ul class="content">        
                                <li class=""><a href="stylesheet.js.html" title="stylesheet.js">stylesheet.js</a></li>
                        </ul>
                    </div>





            </div>
		</div>
	</div>
	<div id="ft">
        <hr />
        Copyright &copy; 2009 Yahoo! Inc. All rights reserved.
	</div>
</div>
<script type="text/javascript">
    ALL_YUI_PROPS = [{"url": "YAHOO.util.StyleSheet.html#method_disable", "access": "", "host": "YAHOO.util.StyleSheet", "type": "method", "name": "disable"}, {"url": "YAHOO.util.StyleSheet.html#method_enable", "access": "", "host": "YAHOO.util.StyleSheet", "type": "method", "name": "enable"}, {"url": "YAHOO.util.StyleSheet.html#method_getCssText", "access": "", "host": "YAHOO.util.StyleSheet", "type": "method", "name": "getCssText"}, {"url": "YAHOO.util.StyleSheet.html#method_getId", "access": "", "host": "YAHOO.util.StyleSheet", "type": "method", "name": "getId"}, {"url": "YAHOO.util.StyleSheet.html#method_isEnabled", "access": "", "host": "YAHOO.util.StyleSheet", "type": "method", "name": "isEnabled"}, {"url": "YAHOO.util.StyleSheet.html#property_node", "access": "", "host": "YAHOO.util.StyleSheet", "type": "property", "name": "node"}, {"url": "YAHOO.util.StyleSheet.html#method_set", "access": "", "host": "YAHOO.util.StyleSheet", "type": "method", "name": "set"}, {"url": "YAHOO.util.StyleSheet.html#method_StyleSheet.isValidSelector", "access": "", "host": "YAHOO.util.StyleSheet", "type": "method", "name": "StyleSheet.isValidSelector"}, {"url": "YAHOO.util.StyleSheet.html#method_StyleSheet.register", "access": "", "host": "YAHOO.util.StyleSheet", "type": "method", "name": "StyleSheet.register"}, {"url": "YAHOO.util.StyleSheet.html#method_StyleSheet.toCssText", "access": "", "host": "YAHOO.util.StyleSheet", "type": "method", "name": "StyleSheet.toCssText"}, {"url": "YAHOO.util.StyleSheet.html#method_unset", "access": "", "host": "YAHOO.util.StyleSheet", "type": "method", "name": "unset"}];
</script>
</body>
</html>
